<?php
/**
 * Description: 公开课咨询窗口查询接口
 * User: devforma
 * Date: 15/5/12
 * Time: 16:45
 */

require LIB_DIR . '/LiveCourse.class.php';
class OpenCourseAlert implements iController {

    /**
     * api请求处理主函数
     * @param array $queryArgs 就是$_REQUEST变量
     * @return array api返回结果，必须含response_code
     */
    public function output($queryArgs) {
        /*
        global $cmsdb;

        if (empty($queryArgs['course_id']) || !is_numeric($queryArgs['course_id']))
            return genOutput(1000);

        $alertStatus = false;

        $alertCourses = $cmsdb->getVar('SELECT `option_value` FROM `wp_options` WHERE `option_name`="openCourseAlert" LIMIT 1');
        if (!empty($alertCourses) && ($courses = unserialize($alertCourses)) && !empty($courses[$queryArgs['course_id']])) {
            $alertStatus = true;
        }
        */

        return genOutput(1, array(
            'alert_status' => false
        ));

    }
}